package com.ccc.ka.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author ccc
 * @since 2023-02-28
 */
@Getter
@Setter
@TableName("ka_records")
@ApiModel(value = "Records对象", description = "")
public class Records implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("UUID")
    private String id;

    @ApiModelProperty("RCYYYYMMDD000，自增")
    private String rcId;

    @ApiModelProperty("个人id或团队id")
    private Integer rcIdRel;

    @ApiModelProperty("金额存正负")
    private Double amount;

    @ApiModelProperty("1、个人账单，2、合作账单")
    private String rcRecordType;

    @ApiModelProperty("记账类别")
    private Integer rcType;

    @ApiModelProperty("备注")
    private String comment;

    @ApiModelProperty("团队记账人")
    private Integer recPsn;

    @ApiModelProperty("账单时间。默认当前时间")
    private LocalDateTime recTm;

    private LocalDateTime crtTm;

    private LocalDateTime updTm;

    @TableField(exist = false)
    private String inOrOutType; //查询，收入支出类型
    @TableField(exist = false)
    private Double minAmount;   //查询，最小金额
    @TableField(exist = false)
    private Double maxAmount;   //查询，最大金额
    @TableField(exist = false)
    private String minRecTm;    //查询，最小记账时间
    @TableField(exist = false)
    private String maxRecTm;    //查询，最大记账时间
    @TableField(exist = false)
    private String rcTypeNm;    //记账类别中文
}
